"""
    该案例演示了通过range函数生成数列
"""
# 只指定了stop，默认start = 0  step = 1
# for i in range(10):
#     print(i)

# 指定起始和结束
# for i in range(2,10):
# for i in range(-10,10):
#     print(i)

# 指定步长
#for i in range(0,10,2):
#    print(i)

# for i in range(10,0,2):
#     print(i)

# for i in range(10,0,-2):
#     print(i)